
package projetchatup;
import java.net.*;


/**
 *
 * @author berthilj
 */
public class Client {
  	public static void main (String[] args) {  
    		try {
			String host="transit";
			int port=5012;
			Socket socket = new Socket (host, port);

				InetAddress serveur = socket.getInetAddress();		
				String ip = serveur.getHostAddress();
		
			System.out.println(ip);

			Thread.sleep(20000);

			socket.close();
		}
		catch (Exception e) {
			System.out.println("Erreur client"); }
        }
}

